package com.exd.kafka.service;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;

@Service
public class ConsumerService {
	
//	@KafkaListener(topics = "exd_vsw")
    public void onMessage(ConsumerRecord<String,String> record){
        System.out.println("------------------------------------------消息："+record.value().length());
    }

}
